package com.mime.qweibo;

import android.util.Log;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class MyWebViewClient extends WebViewClient {
	public boolean shouldOverrideUrlLoading(WebView view, String url) {
		return false;
	}

	public void onPageFinished(WebView view, String url) {
				
		view
				.loadUrl("javascript:window.Methods.getHTML('<head>'+document.getElementsByTagName('html')[0].innerHTML+'</head>');");
		super.onPageFinished(view, url);
		view.requestFocus();//获取焦点即可
	}

	public void onReceivedTitle(WebView view, String title) {
		Log.d("TAG", title);
	}

}
